package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username          string `gorm:"column:username" form:"username" json:"username"`
	Password          string `gorm:"column:password" form:"password" json:"password"`
	Phone             string `gorm:"column:phone" form:"phone" json:"phone"`
	Avatar            string `gorm:"column:avatar" form:"avatar" json:"avatar"`
	WeiXinId          string `gorm:"column:wei_xin_id" form:"weiXinId" json:"weiXinId"`
	Company           string `gorm:"column:company" form:"company" json:"company"`
	Office            string `gorm:"column:office" form:"office" json:"office"`
	Permissions       int    `gorm:"column:permissions" form:"permissions" json:"permissions"`
	DeviceId          string `gorm:"column:device_id" form:"deviceId" json:"deviceId"`
	SearchTime        string `gorm:"column:search_time" form:"searchTime" json:"searchTime"`
	CompanyAttributes string `gorm:"column:company_attributes" form:"companyAttributes" json:"companyAttributes"`
	SearchHistory     string `gorm:"column:search_history" form:"searchHistory" json:"searchHistory"`
}
